home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / valid_filesystems / 80fat < prev    next >
Text File  |  2008-10-29  |  322b  |  29 lines

  1. #!/bin/sh
  2.  
  3. dev=$1
  4. id=$2
  5. property=$3
  6.  
  7. [ -f /var/lib/partman/vfat ] || exit 0
  8.  
  9. case $property in
  10.     formatable)
  11.     echo fat16
  12.     echo fat32
  13.     ;;
  14.     existing)
  15.     [ -f $id/detected_filesystem ] || exit 0
  16.     fs=$(cat $id/detected_filesystem)
  17.  
  18.     case "$fs" in
  19.         fat16)
  20.         echo fat16
  21.         ;;
  22.         fat32)
  23.         echo fat32
  24.         ;;
  25.     esac
  26.     ;;
  27. esac
  28.  
  29.